<!DOCTYPE html><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta charset="utf-8">
<title>phpDocumentor » \ActiveRecord\DatabaseException</title>
<meta name="author" content="Mike van Riel">
<meta name="description" content="">
<link href="../css/template.css" rel="stylesheet" media="all">
<script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
<link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner"><div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">phpDocumentor</a><div class="nav-collapse"><ul class="nav">
<li class="dropdown">
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
                                    API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
<li><a>Packages</a></li>
<li><a href="../packages/ActiveRecord.html"><i class="icon-folder-open"></i> ActiveRecord</a></li>
<li><a href="../packages/Default.html"><i class="icon-folder-open"></i> Default</a></li>
</ul>
</li>
<li class="dropdown" id="charts-menu">
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
                                    Charts <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="../graph_class.html"><i class="icon-list-alt"></i> Class hierarchy diagram</a></li></ul>
</li>
<li class="dropdown" id="reports-menu">
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
                                    Reports <b class="caret"></b></a><ul class="dropdown-menu">
<li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
                <span class="label label-info">310</span></a></li>
<li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
                <ul><li>todo 
                <span class="label label-info">5</span>
</li></ul></a></li>
<li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
                <span class="label label-info">3</span></a></li>
</ul>
</li>
</ul></div>
</div></div>
<div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
</div>
<div id="___" class="container">
<noscript><div class="alert alert-warning">
                            Javascript is disabled; several features are only available
                            if Javascript is enabled.
                        </div></noscript>
<div class="row">
<div class="span4">
<span class="btn-group visibility" data-toggle="buttons-checkbox"><button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button></span><div class="btn-group view pull-right" data-toggle="buttons-radio">
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
</div>
<ul class="side-nav nav nav-list">
<li class="nav-header">
<i class="icon-custom icon-method"></i> Methods
                    <ul>
<li class="method public "><a href="#method___construct" title="__construct :: Constructor de la clase;"><span class="description">Constructor de la clase;</span><pre>__construct()</pre></a></li>
<li class="method public inherited"><a href="#method_catch_exception" title="catch_exception :: Hace que comander maneje una excepcion previamente capturada"><span class="description">Hace que comander maneje una excepcion previamente capturada</span><pre>catch_exception()</pre></a></li>
<li class="method public inherited"><a href="#method_fatal_error_shutdown_handler" title="fatal_error_shutdown_handler :: Capturar los errores fatales en tiempo de ejecucion, para dar un manejo
mas limpio desde del frame"><span class="description">Capturar los errores fatales en tiempo de ejecucion, para dar un manejo
mas limpio desde del frame</span><pre>fatal_error_shutdown_handler()</pre></a></li>
<li class="method public inherited"><a href="#method_frame_error_handler" title="frame_error_handler :: Captura los errores en tiempo de ejecucion y los transforma en excepciones de commander"><span class="description">Captura los errores en tiempo de ejecucion y los transforma en excepciones de commander</span><pre>frame_error_handler()</pre></a></li>
<li class="method public inherited"><a href="#method_frame_exception_handler" title="frame_exception_handler :: Capturador definido para las excepciones no atrapadas"><span class="description">Capturador definido para las excepciones no atrapadas</span><pre>frame_exception_handler()</pre></a></li>
<li class="method public inherited"><a href="#method_get_exception" title="get_exception :: Obtiene la informacion de la excepcion y envia la respuesta a la vista de
error indicada en el atributo _view"><span class="description">Obtiene la informacion de la excepcion y envia la respuesta a la vista de
error indicada en el atributo _view</span><pre>get_exception()</pre></a></li>
</ul>
</li>
<li class="nav-header private">» Private
                    <ul>
<li class="method private inherited"><a href="#method_get_render_message" title="get_render_message :: Obtiene el mensaje de una excepcion con algun nivel de formato,
si la opcion de traceroute esta habilitada se muestra, de lo contrario
solo se muestra el mensaje generado"><span class="description">Obtiene el mensaje de una excepcion con algun nivel de formato,
si la opcion de traceroute esta habilitada se muestra, de lo contrario
solo se muestra el mensaje generado</span><pre>get_render_message()</pre></a></li>
<li class="method private inherited"><a href="#method_manage_exceptions" title="manage_exceptions :: Manipula internamente las excepciones recibidas para enviar una vista de error"><span class="description">Manipula internamente las excepciones recibidas para enviar una vista de error</span><pre>manage_exceptions()</pre></a></li>
</ul>
</li>
<li class="nav-header">
<i class="icon-custom icon-property"></i> Properties
                    <ul><li class="property public inherited"><a href="#property__view" title="$_view :: Codigo de error de la Excepcion"><span class="description"></span><pre>$_view</pre></a></li></ul>
</li>
</ul>
</div>
<div class="span8">
<a id="\ActiveRecord\DatabaseException"></a><ul class="breadcrumb">
<li>
<a href="../index.html"><i class="icon-custom icon-class"></i></a><span class="divider">\</span>
</li>
<li><a href="../namespaces/ActiveRecord.html">ActiveRecord</a></li>
<li class="active">
<span class="divider">\</span><a href="../classes/ActiveRecord.DatabaseException.html">DatabaseException</a>
</li>
</ul>
<div class="element class">
<p class="short_description">Thrown when there was an error performing a database operation.</p>
<div class="details">
<div class="long_description"><p>The error will be specific to whatever database you are running.</p></div>
<table class="table table-bordered">
<tr>
<th>package</th>
<td><a href="../packages/ActiveRecord.html">ActiveRecord</a></td>
</tr>
<tr>
<th>author</th>
<td><a href="mailto:bobbabilon2@gmail.com">Robert babilonia</a></td>
</tr>
</table>
<h3>
<i class="icon-custom icon-method"></i> Methods</h3>
<a id="method___construct"></a><div class="element clickable method public method___construct" data-toggle="collapse" data-target=".method___construct .collapse">
<h2>Constructor de la clase;</h2>
<pre>__construct($adapter_or_string_or_mystery) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<h3>Parameters</h3>
<div class="subelement argument"><h4>$adapter_or_string_or_mystery</h4></div>
</div></div>
</div>
<a id="method_catch_exception"></a><div class="element clickable method public method_catch_exception" data-toggle="collapse" data-target=".method_catch_exception .collapse">
<h2>Hace que comander maneje una excepcion previamente capturada</h2>
<pre>catch_exception(\Exception $e, string $view) </pre>
<div class="labels">
<span class="label">Inherited</span><span class="label">Static</span>
</div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>inherited_from</th>
<td>\CommanderException::catch_exception()</td>
</tr>
<tr>
<th>inherited_from</th>
<td>\ActiveRecord\ActiveRecordException::catch_exception()</td>
</tr>
</table>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$e</h4>
<code><a href="http://php.net/manual/en/class.exception.php">\Exception</a></code>
</div>
<div class="subelement argument">
<h4>$view</h4>
<code>string</code>
</div>
</div></div>
</div>
<a id="method_fatal_error_shutdown_handler"></a><div class="element clickable method public method_fatal_error_shutdown_handler" data-toggle="collapse" data-target=".method_fatal_error_shutdown_handler .collapse">
<h2>Capturar los errores fatales en tiempo de ejecucion, para dar un manejo
mas limpio desde del frame</h2>
<pre>fatal_error_shutdown_handler() </pre>
<div class="labels">
<span class="label">Inherited</span><span class="label">Static</span>
</div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>inherited_from</th>
<td>\CommanderException::fatal_error_shutdown_handler()</td>
</tr>
<tr>
<th>inherited_from</th>
<td>\ActiveRecord\ActiveRecordException::fatal_error_shutdown_handler()</td>
</tr>
</table>
</div></div>
</div>
<a id="method_frame_error_handler"></a><div class="element clickable method public method_frame_error_handler" data-toggle="collapse" data-target=".method_frame_error_handler .collapse">
<h2>Captura los errores en tiempo de ejecucion y los transforma en excepciones de commander</h2>
<pre>frame_error_handler(int $errno, string $errstr, string $errfile, int $errline) </pre>
<div class="labels">
<span class="label">Inherited</span><span class="label">Static</span>
</div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>inherited_from</th>
<td>\CommanderException::frame_error_handler()</td>
</tr>
<tr>
<th>inherited_from</th>
<td>\ActiveRecord\ActiveRecordException::frame_error_handler()</td>
</tr>
</table>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$errno</h4>
<code>int</code>
</div>
<div class="subelement argument">
<h4>$errstr</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$errfile</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$errline</h4>
<code>int</code>
</div>
<h3>Exceptions</h3>
<table class="table table-bordered"><tr>
<th><code><a href="http://php.net/manual/en/class.errorexception.php">\ErrorException</a></code></th>
<td></td>
</tr></table>
</div></div>
</div>
<a id="method_frame_exception_handler"></a><div class="element clickable method public method_frame_exception_handler" data-toggle="collapse" data-target=".method_frame_exception_handler .collapse">
<h2>Capturador definido para las excepciones no atrapadas</h2>
<pre>frame_exception_handler(<a href="http://php.net/manual/en/class.exception.php">\Exception</a> $excepcion) </pre>
<div class="labels">
<span class="label">Inherited</span><span class="label">Static</span>
</div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>inherited_from</th>
<td>\CommanderException::frame_exception_handler()</td>
</tr>
<tr>
<th>inherited_from</th>
<td>\ActiveRecord\ActiveRecordException::frame_exception_handler()</td>
</tr>
</table>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$excepcion</h4>
<code><a href="http://php.net/manual/en/class.exception.php">\Exception</a></code>
</div>
</div></div>
</div>
<a id="method_get_exception"></a><div class="element clickable method public method_get_exception" data-toggle="collapse" data-target=".method_get_exception .collapse">
<h2>Obtiene la informacion de la excepcion y envia la respuesta a la vista de
error indicada en el atributo _view</h2>
<pre>get_exception() </pre>
<div class="labels"><span class="label">Inherited</span></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>author</th>
<td><a href="mailto:bobbabilon2@gmail.com">Robert babilonia</a></td>
</tr>
<tr>
<th>inherited_from</th>
<td>\CommanderException::get_exception()</td>
</tr>
<tr>
<th>inherited_from</th>
<td>\ActiveRecord\ActiveRecordException::get_exception()</td>
</tr>
</table>
</div></div>
</div>
<a id="method_get_render_message"></a><div class="element clickable method private method_get_render_message" data-toggle="collapse" data-target=".method_get_render_message .collapse">
<h2>Obtiene el mensaje de una excepcion con algun nivel de formato,
si la opcion de traceroute esta habilitada se muestra, de lo contrario
solo se muestra el mensaje generado</h2>
<pre>get_render_message(\Exception $e) </pre>
<div class="labels">
<span class="label">Inherited</span><span class="label">Static</span>
</div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>inherited_from</th>
<td>\CommanderException::get_render_message()</td>
</tr>
<tr>
<th>inherited_from</th>
<td>\ActiveRecord\ActiveRecordException::get_render_message()</td>
</tr>
</table>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$e</h4>
<code><a href="http://php.net/manual/en/class.exception.php">\Exception</a></code><p>Excepcion recibida</p></div>
</div></div>
</div>
<a id="method_manage_exceptions"></a><div class="element clickable method private method_manage_exceptions" data-toggle="collapse" data-target=".method_manage_exceptions .collapse">
<h2>Manipula internamente las excepciones recibidas para enviar una vista de error</h2>
<pre>manage_exceptions(<a href="http://php.net/manual/en/class.exception.php">\Exception</a> $excepcion) </pre>
<div class="labels">
<span class="label">Inherited</span><span class="label">Static</span>
</div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>inherited_from</th>
<td>\CommanderException::manage_exceptions()</td>
</tr>
<tr>
<th>inherited_from</th>
<td>\ActiveRecord\ActiveRecordException::manage_exceptions()</td>
</tr>
</table>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$excepcion</h4>
<code><a href="http://php.net/manual/en/class.exception.php">\Exception</a></code>
</div>
</div></div>
</div>
<h3>
<i class="icon-custom icon-property"></i> Properties</h3>
<a id="property__view"> </a><div class="element clickable property public property__view" data-toggle="collapse" data-target=".property__view .collapse">
<h2></h2>
<pre>$_view : string</pre>
<div class="labels"><span class="label">Inherited</span></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>inherited_from</th>
<td>\CommanderException::$$_view</td>
</tr>
<tr>
<th>inherited_from</th>
<td>\ActiveRecord\ActiveRecordException::$$_view</td>
</tr>
</table>
</div></div>
</div>
</div>
</div>
</div>
</div>
<div class="row"><footer class="span12">
            Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
            Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a12</a> and<br>
            generated on 2013-06-08T13:56:19-04:30.<br></footer></div>
</div>
</body>
</html>
